package com.cleaningcloud.cld.service;

import com.cleaningcloud.cld.api.domain.CldRecruitPlan;
import com.cleaningcloud.cld.domain.dto.CldRecruitPlanDto;
import com.cleaningcloud.cld.domain.vo.CldRecruitPlanVo;

import java.util.List;

/**
 * 招聘计划Service接口
 *
 * @author cleaningcloud
 * @date 2024-10-23
 */
public interface ICldRecruitPlanService {
    /**
     * 查询招聘计划
     *
     * @param recruitPlanId 招聘计划主键
     * @return 招聘计划
     */
    CldRecruitPlan selectCldRecruitPlanByRecruitPlanId(Long recruitPlanId);


    /**
     * 根据招聘负责人手机号码查询
     *
     * @param phone
     * @return
     */
    CldRecruitPlan selectCldRecruitPlanByRecruitPhone(String phone);

    /**
     * 查询招聘计划列表
     *
     * @param cldRecruitPlan 招聘计划
     * @return 招聘计划集合
     */
    List<CldRecruitPlanVo> selectCldRecruitPlanList(CldRecruitPlanDto cldRecruitPlan);

    /**
     * 新增招聘计划
     *
     * @param cldRecruitPlan 招聘计划
     * @return 结果
     */
    int insertCldRecruitPlan(CldRecruitPlan cldRecruitPlan);

    /**
     * 修改招聘计划
     *
     * @param cldRecruitPlan 招聘计划
     * @return 结果
     */
    int updateCldRecruitPlan(CldRecruitPlan cldRecruitPlan);

    /**
     * 批量删除招聘计划
     *
     * @param recruitPlanIds 需要删除的招聘计划主键集合
     * @return 结果
     */
    int deleteCldRecruitPlanByRecruitPlanIds(Long[] recruitPlanIds);

    /**
     * 删除招聘计划信息
     *
     * @param recruitPlanId 招聘计划主键
     * @return 结果
     */
    int deleteCldRecruitPlanByRecruitPlanId(Long recruitPlanId);
}
